// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 策略执行概况 GET /strategy/track/execute/list */
export async function strategyTrackControllerGetStrategyExecuteList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.strategyTrackControllerGetStrategyExecuteListParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationStatisticStrategyExecDto>(
    `${apiPrefix}/strategy/track/execute/list`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 策略执行概况总计 GET /strategy/track/execute/total */
export async function strategyTrackControllerGetStrategyExecuteTotal(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.strategyTrackControllerGetStrategyExecuteTotalParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStatisticStrategyExecDto>(
    `${apiPrefix}/strategy/track/execute/total`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 策略跟踪曲线数据 GET /strategy/track/line */
export async function strategyTrackControllerGetStrategyLineData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.strategyTrackControllerGetStrategyLineDataParams,
  options?: { [key: string]: any },
) {
  return request<API.StrategyLineData[]>(`${apiPrefix}/strategy/track/line`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 策略跟踪列表数据 GET /strategy/track/list */
export async function strategyTrackControllerGetStrategyPageDatas(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.strategyTrackControllerGetStrategyPageDatasParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationStrategyExecuteResp>(`${apiPrefix}/strategy/track/list`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
